package com.study.scala.placeholder

object PlaceholderTest {

  def main(args: Array[String]): Unit = {
    val tuple = ("zsc", "zhaosc1", "zhaosc2");
    println(tuple._2);

    val array = Array("zsc", 1, 2, 3);

    for (i <- 0 to array.length - 1) {
      print(array(i))
    }

    println();
    for (ele <- array) {
      print(ele)
    }
    println();
    val map = Map("1" -> "zsc", "2" -> "zsd");

    for ((k, v) <- map) {
      println(k + "*****" + v)
    }

    for ((k, _) <- map) {
      println(k)
    }
    for ((k) <- map) {
      println(k._1 + "*****" + k._2)
    }

  }

}